import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-05-07
 * Time: 11:56
 */
public class kaobei {
    public static void main(String[] args) {
        int[] array={1,2,3,4,5};
        int[] b= Arrays.copyOfRange(array,1,3);
        System.out.println("array: "+Arrays.toString(array));
        System.out.println("b: "+Arrays.toString(b));
    }
}
